package com.ziyun.pop.modules.order.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.stereotype.Service;
import java.util.Map;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import com.ziyun.pop.modules.order.dao.ErpOrderAllotRelevanceDao;
import com.ziyun.pop.modules.order.entity.ErpOrderAllotRelevanceEntity;
import com.ziyun.pop.modules.order.service.ErpOrderAllotRelevanceService;


@Service("erpOrderAllotRelevanceService")
public class ErpOrderAllotRelevanceServiceImpl extends ServiceImpl<ErpOrderAllotRelevanceDao, ErpOrderAllotRelevanceEntity> implements ErpOrderAllotRelevanceService {

    @Override
    public boolean updateByMap(Map<String, Object> updateMap, Integer oarId) {
        int update = this.baseMapper.updateByMap(updateMap, oarId);
        if (update == 0){
            return false;
        }
        return true;
    }

    @Override
    public boolean cancleAllotInfo(Integer productionId) {
        int update = this.baseMapper.cancleAllotInfo(productionId);
        if (update > 0){
            return true;
        }
        return false;
    }
}
